<template>
  <div id="app">
    <h1>less 预编译</h1>
    <div class="box">
      <div>这是一段普通文本</div>
      <div>
        <p>这是一段嵌套的标签结构</p>
      </div>
    </div>
    <hr>
    <Home />
  </div>
</template>

<script>
import Home from "./components/Home.vue"
export default {
  name: 'App',
  components: {
    Home
  }
}
</script>

<style lang="less" scoped>
@import url(./style/common.less);
// 定义变量
// @color:pink;
// 混入mixin
.mixin_a{
  font-size: 50px;
}
h1{
  color: green;
  background-color: @color;
}
.box{
  border: 2px solid @color;
  div{
    color: red;
    p{
      color: blue;
      .mixin_a()
    }
  }
}
</style>
